import 'package:flutter/material.dart';
import 'package:flutter_project/routers/app_routers.dart';
import 'package:get/get.dart';
import 'package:get/route_manager.dart';

class SplashPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('启动页'.tr),
        ),
        body: Center(
          child: Column(
            children: [
              InkWell(
                child: Center(
                  child: Text('去tabar页面'.tr),
                ),
                onTap: () {
                  //用Get跳转到Tabbar页面
                  Get.toNamed(AppRouters.root);
                },
              ),
              const SizedBox(
                height: 20,
              ),
              Text('测试文本'.tr),
            ],
          ),
        ));
  }
}
